package cnooc.dataAnalysis.controller;


import cnooc.common.core.controller.BaseController;
import cnooc.common.core.domain.AjaxResult;
import cnooc.dataAnalysis.domain.AnalysisParam;
import cnooc.dataAnalysis.service.StatisticsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 统计数据查询Controller
 * 
 * @author lambda
 * @date 2023-11-28
 */
@RestController
@RequestMapping("/dataAnalysis/statistics")
public class StatisticsController extends BaseController
{
    @Resource
    StatisticsService statisticsService;

    @PostMapping("/queryStatistics")
    public AjaxResult queryStatistics(@RequestBody AnalysisParam param) {
        return AjaxResult.success(statisticsService.queryStatistics(param));

    }

}
